
$("#db").click(function(){
	alert("aa");
	 var form = new FormData(document.getElementById("addForm"));
	 $.ajax({
            url:"imageContrasts",
            type:"post",
            dataType:"json",
            data:form,
            processData:false,
            contentType:false,
            success:function(data){
            	if(data.code == 200){
            		console.log("1"+data);
            		console.log("2"+data.data);
            		$("#tt").text(data.data);
            		setTimeout(function(){
						layer.msg("返回成功", {icon : 1,time : 1500});
						$(form).resetForm();
					},1500);
            	}
            },
            error:function(e){
            	layer.msg("返回失败", {icon : 2,time : 1500,});
            }
        });       
});
			